package com.hjn.springcloud.service.impl;

import com.hjn.springcloud.dao.PaymentMapper;
import com.hjn.springcloud.pojo.Payment;
import com.hjn.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
*@author huaijn
*@date 2021/5/14 16:17
*@description 支付service层的实现
*/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper mapper;

    /**
     * @user huaijiannan
     * @time 2021/5/14-16:24
     * @param payment 支付对象
     */
    @Override
    public int create(Payment payment) {
        return mapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return mapper.getPaymentById(id);
    }
}
